package com.biglead.demo.service;

import com.biglead.demo.pojo.SeckillGoods;

import java.util.List;

public interface SecKillGoodsService {
    SeckillGoods findByGoodsId(Long goodsId);

    int updateById(SeckillGoods seckillGoods);

    /**
     * 更新库存 - 1
     * @param seckillGoods
     * @return
     */
    int updateStockCount(SeckillGoods seckillGoods);

    List<SeckillGoods> findAllSecKillGoods();
}
